{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "a00d0724",
   "metadata": {
    "scrolled": false
   },
   "outputs": [],
   "source": [
    "import numpy as np \n",
    "import  matplotlib.pyplot as plt \n",
    "import time,os,sys\n",
    "\n",
    "class paint:\n",
    "    def __init__(self,file) -> None:\n",
    "        calib = np.load(file)\n",
    "        print(calib.shape)\n",
    "        self.c_h = calib[:,:,1,:]\n",
    "        self.c_v = calib[:,:,0,:]\n",
    "        plt.ion()\n",
    "        plt.figure(1)\n",
    "        \n",
    "        for i in range(180):\n",
    "            for j in range(45):\n",
    "                li =[]\n",
    "               \n",
    "                for k in range(12):\n",
    "                    li.append(np.abs(self.c_h[i,j,k]))\n",
    "                plt.plot(li)\n",
    "                plt.draw()\n",
    "                plt.pause(0.1)\n",
    "                plt.clf()\n",
    "\n",
    "                \n",
    "        \n",
    "        \n",
    "        pass\n",
    "    \n",
    "    \n",
    "if __name__ == '__main__':\n",
    "    file = '1.npy'\n",
    "    p = paint(file)\n",
    "    \n",
    "    pass"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
